/**********************************************************************
* File: item.cpp
* ID  : 
* Purpose: Implementation of class Item.
* Date   : 2004/04/23
* Author : T.S.Yo
* Description:
*    Methods include: constructor, destrctor, setDataMember, and
*        getDataMember
**********************************************************************/

#ifndef ITEM_CPP
#define ITEM_CPP

#include <string>
#include <iostream>
#include "item.h"

using namespace std;

// Constructor
Item::Item(){};

// Destructor
Item::~Item(){}; 

// Get Data Member
string Item::getKey() const
{return name;}

string Item::getName()
{return name;}

int Item::getPoint()
{return point;}

int Item::getWeight()
{return weight;}

int Item::getLocation()
{return location;}

bool Item::getAccessed()
{return accessed;}

string Item::getDescription()
{return description;}

// Set Data Member
void Item::setName(const string &newName)
{name = newName;}

void Item::setAccessed(const bool &newAccessed)
{accessed = newAccessed;}

void Item::setLocation(const int &newLocation)
{location = newLocation;}

void Item::setPoint(const int &newPoint)
{point = newPoint;}

void Item::setWeight(const int &newWeight)
{weight = newWeight;}

void Item::setDescription(const string &newDescription)
{description = newDescription;}

        
#endif    // ifndef ITEM_CPP
